what is digital camera how it works explain